package day20170922.Zuoye;

/**
 * Created by JAVA on 2017/9/28.
 */
public class doubleTointJavaple {
    public static void main(String args[]){
        int a;
        double b=1,c=2;
        a=(int)(b+c);//加int，double强制转换为int.
        System.out.println("a="+a);
    }
}
/*public class doubleTointJavaple{
    public static void main(String[]args) {
     int x,y,z;
        x=1;
        y=2;
        z=(x+y>3?x++:++y);
        System.out.println("x="+x);
        System.out.println("y="+y);
        System.out.println("z="+z);
    }
        }*/
/*public class doubleTointJavaple{
   public static void main (String args[]) {
       int i=1,j=10;
       do
       {
           if(i++>--j)break;
       }while(i<5);
       System.out.println("i="+i+"<…>"+"j="+j);
   }
}*/
